package io;

import java.io.*;


public class PWDemo {
    public static void main(String[] args) throws IOException {
        PrintWriter pw = new PrintWriter("pw.txt");
        pw.write("啊啊啊~");
        pw.write("哦哦哦");
        System.out.println("完成");
        pw.close();




        /*BufferedWriter bw = new BufferedWriter(
                            new OutputStreamWriter(
                            new FileOutputStream("pw.txt"), StandardCharsets.UTF_8));
        bw.write("啊啊~");
        bw.write("哦哦");
        System.out.println("完成");
        bw.close();*/
    }
}
